package com.easthome.controller;


import com.easthome.pojo.Person;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("hello")
public class HelloWorldController {
    @Autowired
    private Person person;
    @RequestMapping("sayHello")
    public String sayHello(){
        System.out.println(person);
        return "你好SpringBoot";
    }
}
